﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Com.Toook.ParseHtml.Entity
{
    public class Kind
    {
        /// <summary>
        /// 开始基础地址
        /// </summary>
        public string BaseUrl;
        /// <summary>
        /// 站点分类ID
        /// </summary>
        public string SiteKindId;
        /// <summary>
        /// 标题最小长度
        /// </summary>
        public int MinTitleLength;
        /// <summary>
        /// 获取下一页的规则,没有分页的保持null。在解析时判断PageRule是否为null,确定是否有分页
        /// </summary>
        public PageRule PageRule;
        /// <summary>
        /// 当前页面地址
        /// </summary>
        public string CurrentPageUrl;
        /// <summary>
        /// 分类对应的解析规则列表
        /// </summary>
        public List<Rule> RuleList = new List<Rule>();
        /// <summary>
        /// 获取页面初始化Elements步骤
        /// </summary>
        public Step InitStep = new Step();
        /// <summary>
        /// 保存结果的表名
        /// </summary>
        public string SaveToTableName;
    }
}
